package com.wxzz.elearing.pay.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户订单表
 * </p>
 *
 * @author
 * @since 2021-04-23
 */
@Data
@ApiModel(value = "UserOrder对象", description = "用户订单表")
public class UserOrder extends BaseEntity {

    @ApiModelProperty(value = "0-管理端 1-用户端 2-讲师端")
    private Integer userType;

    @ApiModelProperty(value = "支付时间")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "0-余额支付 1-支付宝支付 2-微信支付")
    private Integer payType;

    @ApiModelProperty(value = "0-未支付 1-已支付 2-已取消")
    private Integer orderStatus;

    @ApiModelProperty(value = "订单编号")
    private String orderNum;

    @ApiModelProperty(value = "订单标题")
    private String orderTitle;

    @ApiModelProperty(value = "模块类型 模块类型  0-课程 1-直播 2-活动(线上) 3-问答 4-直播打赏 5-活动(线下)")
    private Integer modelType;

    @ApiModelProperty(value = "收入对象")
    private String incomeName;

    @ApiModelProperty(value = "支付人员姓名")
    private String payName;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "收入金额")
    private BigDecimal incomePrice;

    @ApiModelProperty(value = "企业id")
    private Long enterpriseId;

    @ApiModelProperty(value = "业务id")
    private Long businessId;
}
